home *** CD-ROM | disk | FTP | other *** search
/ Stone Design / Stone Design.iso / Stone_Friends / Wave / WavesWorld / Source / Libraries / tcl7.4b3 / doc / lreplace.n < prev    next >
Encoding:
Text File  |  1995-01-30  |  1.5 KB  |  44 lines

  1. '\"
  2. '\" Copyright (c) 1993 The Regents of the University of California.
  3. '\" Copyright (c) 1994-1995 Sun Microsystems, Inc.
  4. '\"
  5. '\" See the file "license.terms" for information on usage and redistribution
  6. '\" of this file, and for a DISCLAIMER OF ALL WARRANTIES.
  7. '\" 
  8. '\" @(#) lreplace.n 1.4 95/01/30 10:35:45
  9. '\" 
  10. .so man.macros
  11. .HS lreplace tcl 7.4
  12. .BS
  13. '\" Note:  do not modify the .SH NAME line immediately below!
  14. .SH NAME
  15. lreplace \- Replace elements in a list with new elements
  16. .SH SYNOPSIS
  17. \fBlreplace \fIlist first last \fR?\fIelement element ...\fR?
  18. .BE
  19.  
  20. .SH DESCRIPTION
  21. .PP
  22. \fBLreplace\fR returns a new list formed by replacing one or more elements of
  23. \fIlist\fR with the \fIelement\fR arguments.
  24. \fIFirst\fR gives the index in \fIlist\fR of the first element
  25. to be replaced (0 refers to the first element).
  26. If \fIfirst\fR is less than zero then it refers to the first
  27. element of \fIlist\fR;  the element indicated by \fIfirst\fR
  28. must exist in the list.
  29. \fILast\fR gives the index in \fIlist\fR of the last element
  30. to be replaced;  it must be greater than or equal to \fIfirst\fR.
  31. .VS
  32. \fIFirst\fR or \fIlast\fR may be \fBend\fR
  33. .VE
  34. (or any abbreviation of it) to refer to the last element of the list.
  35. The \fIelement\fR arguments specify zero or more new arguments to
  36. be added to the list in place of those that were deleted.
  37. Each \fIelement\fR argument will become a separate element of
  38. the list.
  39. If no \fIelement\fR arguments are specified, then the elements
  40. between \fIfirst\fR and \fIlast\fR are simply deleted.
  41.  
  42. .SH KEYWORDS
  43. element, list, replace
  44.